import request from '@/utils/request'

// 我的成就List
export function awardRecordListApi(query) {
  return request({
    url: '/jsjx/awardRecord/list',
    method: 'get',
    params: query
  })
};

// 我的成就Add
export function awardRecordAddApi(data) {
  return request({
    url: '/jsjx/awardRecord',
    method: 'post',
    data
  })
};

// 我的成就Edit
export function awardRecordEditApi(id) {
  return request({
    url: '/jsjx/awardRecord',
    method: 'put',
    data
  })
};

// 我的成就del
export function awardRecordDelApi(id) {
  return request({
    url: `/jsjx/awardRecord/${id}`,
    method: 'delete',
  })
};

// 我的成就ById
export function awardRecordByIdApi(id) {
  return request({
    url: `/jsjx/awardRecord/${id}`,
    method: 'get',
  })
};